<html lang="zh">
<meta charset="utf-8">
<head>
    <title>修改公式时间类别</title>

    <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
    <link href="/static/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link href="/static/css/animate.css" rel="stylesheet"/>
    <link href="/static/css/style.css" rel="stylesheet"/>
    <link href="/static/css/common-ui.css" rel="stylesheet"/>
    <link href="/static/js/jquery-layout/jquery.layout-latest.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="defaultForm" action="/com.sys/formulatime/edit1" method="post"
          onsubmit="return false;">
        <input type="hidden" name="id" value="${mathtimelist.id !''}">


        <div class="form-group">
            <label class="col-sm-3 control-label">类别名称：</label>
            <div class="col-sm-5">
                <input class="form-control" type="text" name="typeName" id="typeName" value="${mathtimelist.typeName!''}"/>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label">类别中文名称：</label>
            <div class="col-sm-5">
                <input class="form-control" type="text" name="typeNameZh" id="typeNameZh" value="${mathtimelist.typeNameZh!''}"/>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label">排序：</label>
            <div class="col-sm-5">
                <input class="form-control" type="text" name="sort" id="sort" value="${mathtimelist.sort!''}"/>
            </div>
        </div>



        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-5">
                <input type="radio" name="status" <#if ('${(mathtimelist.status)!}'=='Y')>checked</#if> value="Y">有效
                <input type="radio" name="status" <#if ('${(mathtimelist.status)!}'=='N')>checked</#if> value="N">无效
            </div>
        </div>



        <div class="form-group">
            <label class="col-sm-3 control-label">描述：</label>
            <div class="col-sm-5">
                <input class="form-control" type="text" name="remark" id="remark" value="${mathtimelist.remark!''}"/>
            </div>
        </div>


    </form>
</div>
<script type="text/javascript" src="/static/js/jquery-1.12.4.js"></script>
<script src="/static/js/bootstrap.min.js"></script>

<!-- jquery-validate 表单验证插件 -->
<script src="/static/js/validate/jquery.validate.min.js"></script>
<script src="/static/js/validate/messages_zh.min.js"></script>
<script src="/static/js/validate/jquery.validate.extend.js"></script>

<!-- jquery-form 表单插件 -->
<script src="/static/js/jquery.form.min.js" type="text/javascript"></script>

<script src="/static/js/layer/layer.min.js"></script>
<script src="/static/js/jquery-layout/jquery.layout-latest.js"></script>
<script src="/static/js/common-ui.js?v=3.0.0"></script>
<script src="/static/js/datePicker/WdatePicker.js"></script>

<script>

    $("#defaultForm").validate({
        rules:{
            typeName:{
                required:true
            }
        },
        messages: {
            "typeName":{
                remote: "类别名称不能为空"
            }
        }
    });
    function submitHandler() {
        if ($.validate.form()) {
            $("#defaultForm").ajaxSubmit(function (data) {
                $.operate.saveSuccess(data);
            });
        }

    }


</script>
</body>
</html>

